﻿@using Backend.JYD.Business;
@{
    ViewBag.Title = "任务处理错误";
    Layout = "~/Views/Shared/_LayoutWin.cshtml";
    int type = Convert.ToInt32(ViewBag.Type);
    Int64 taskId = Convert.ToInt64(ViewBag.TaskId);
    string code = this.ViewBag.Code as string;
    //TaskManager.StepModel code = ViewBag.Code;
}
@using (Html.BeginForm())
{
<div class="ui_pop_body" style="width: 600px; height: 350px;">
        <div>
            <ul class="edit-ul">
                <li class="li01">
                <span class="s01"></span>
                @if (type == 1)
                {
                    <span class="s02">存在不允许执行此操作的任务：@taskId</span>
                }
                else if (type == 2)
                { 
                    <span class="s02">任务 @taskId 未指定 @code</span>
                }
                else if (type == 3)
                { 
                    <span class="s02">所选任务没有共同的 @code</span>
                }
                else if (type == 4)
                { 
                    <span class="s02">未找到任务 @taskId 的模型。</span>
                }
                else if (type == 5)
                { 
                    <span class="s02">不能执行操作不同的任务。</span>
                }
                else if (type == 6 && !string.IsNullOrWhiteSpace(code))
                { 
                    <span class="s02">存在不是 @code 的任务。</span>
                }
                else if (type == 7)
                { 
                    <span class="s02">营销任务不能在当前流程处理。</span>
                }
                else if (type == 8)
                { 
                    <span class="s02">所选任务的下一步骤模型执行对象不一致。</span>
                }
                else if (type == 9)
                { 
                    <span class="s02">未执行任务的具体操作。</span>
                }
                else if (type == 10)
                { 
                    <span class="s02">所选任务：@taskId 的操作类型和指定的操作不一致。</span>
                }
                else if (type == 11)
                { 
                    <span class="s02">下一步任务的执行人或者角色不能为空。</span>
                }
                else if (type == 12)
                { 
                    <span class="s02">所选任务不是同一模型，且存在可选步骤操作。</span>
                }
                else if (type == 13)
                { 
                    <span class="s02"> 所选任务：@taskId 存在错误的步骤参数。</span>
                }
                else if (type == 14)
                { 
                    <span class="s02">所选任务：@taskId 没有下一步的步骤模型</span>
                }
                </li>
                <li class="li01">
                    <span class="s01"></span>
                    <span class="s02">
                        <input type="button" value="取消" onclick="closeWin()"/>
                    </span>
                </li>
            </ul>
        </div>
        <div>
            
        </div>
    </div>
}